//
//  DBVersionMode.m
//  DogeLegs
//
//  Created by 宋华 on 2017/8/25.
//  Copyright © 2017年 宋华. All rights reserved.
//

#import "DBVersionMode.h"

@implementation DBVersionMode

//从无版本升级到一版本，不存在这种情况，只是列出来
+(DBVersionMode *)upgradeOneMode {
    DBVersionMode *vMode = [[DBVersionMode alloc] init];
    vMode.curDBVersion = 1;
    vMode.upardgeSelStr = NSStringFromSelector(@selector(upgradeNoneToOne));
    return vMode;
}

//从一版本升级到二版本
+(DBVersionMode *)upgradeTwoMode {
    DBVersionMode *vMode = [[DBVersionMode alloc] init];
    vMode.curDBVersion = 2;
    vMode.upardgeSelStr =  NSStringFromSelector(@selector(upgradeOneToTwo));
    return vMode;
}
//从二版本升级到三版本
+(DBVersionMode *)upgradeThreeMode {
    DBVersionMode *vMode = [[DBVersionMode alloc] init];
    vMode.curDBVersion = 3;
    vMode.upardgeSelStr =  NSStringFromSelector(@selector(upgradeTwoToThree));
    return vMode;
}

@end
